<?php
use think\Route;
Route::get('<cate_alias>/$', 'index/articles/lists' ,[],['cate_alias'=>'[b-za]*']);
// Route::get('<alias>/p/<page>/$', 'index/list',[],['page'=>'\d+'])->pattern(['alias' => '[b-za]*']);
return[
'__pattern__'=>['name'=>'\w+',],
'__domain__'  => [
    'api'   => 'bbs',
    
],
''=>['index/index/index',['ext'=>'html']],
'search'=>['index/index/search',['ext'=>'html']],
'[tag]'=>[':vname'=>['index/tag/index',['vname'=>'\d+']]],
'artadd'=>['index/articles/add',['ext'=>'html']],
'choice'=>['index/articles/choice',['ext'=>'html']],
'sc'=>['index/sitemap/index',['ext'=>'html']],
'daishen'=>['index/index/zuixintijiao',['ext'=>'html']],
'[artedit]'=>[':id'=>['index/articles/edit',['id'=>'\d+']]],
'[sites]'=>[':id'=>['index/index/html',['id'=>'\d+']]],
// 添加url
'addurl'=>['index/about/tianjia',['ext'=>'html']],
'[about]'=>[':id'=>['index/about/html',['id'=>'\d+']]],
'yzm'=>['index/about/captcha',['ext'=>'html']],
'[soft]'=>[':id'=>['index/index/soft',['id'=>'\d+']]],
'[article]'=>[':id'=>['index/index/article',['id'=>'\d+']]],
// '[webdir]'=>[':cate_alias'=>['index/articles/lists',['cate_alias'=>'\d+'],['ext'=>'/']]],
// 'all'=>['index/articles/lists',['ext'=>'html']],
'forums'=>['bbs/index/index',['ext'=>'html']],
// 'search'=>['bbs/index/search',['ext'=>'html']],
'fadd'=>['bbs/forum/add',['ext'=>'html']],
'plugins'=>['bbs/plugin/index',['ext'=>'html']],
'applydeveloper'=>['bbs/plugin/applydeveloper',['ext'=>'html']],
'[plinfo]'=>[':id'=>['bbs/plugin/view',['id'=>'\d+']]],
'[fedit]'=>[':id'=>['bbs/forum/edit',['id'=>'\d+']]],
'[thread]'=>[':id'=>['bbs/index/thread',['id'=>'\d+']]],
'[cate]'=>[':cate_alias'=>['bbs/index/cate',['cate_alias'=>'\d+']]],



// '[adminx]'=>[':login'=>['admin/login/index',['login'=>'\d+']]],
];